<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page
	import="java.util.*,
				 com.kylin.common.*,
				 com.kylin.common.util.*,
				 com.kylin.common.paginate.*,com.kylin.module.study.orm.Vocabularyerrors"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
 
<table width="90%" border="0" align="center">
	<tr>
		<td align="left">
			学习管理→词汇管理→词汇报错列表
		</td>
	</tr>
</table>
<p>
	&nbsp;
</p>
<p>
	&nbsp;
</p>
<form action="/admin/study/manageVocabulary.do?CMD=searchError" method="post" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="22" align="right">
			母语：
		</td>
		<td align="left">
      <mytag:national name="language" dictName="<%=Constants.SYSLANGUAGE%>" />
		</td>
	</tr>

	<tr>
		<td height="18" align="right">
			词汇：
		</td>
		<td align="left">
			<input type="text" name="content" />
		</td>
	</tr>
	<tr>
		<td height="29" align="right"> &nbsp; </td>
		<td>
			<input name="submit" type="submit" value="查询" />
		</td>
	</tr>
</table>
</form>
<br />
<script>
    function deleteOne(delUrl){
        if(confirm("确定要删除此条数据吗？") ){
            location.href = delUrl ;
        }
    }
</script>

<table width="90%" border="0" align="center">
  <tr>
    <td>汉语 & 英语</td>
  </tr>
</table>

<mytag:MyActionMsg />

<table width="90%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#AAAAAA bordercolordark=white>
  <tr align="center" bgcolor="F2F2F2">
    <td height="25"> 序号 </td>
    <td> 会员</td>
    <td> 母语单词 </td>
    <td> 学习语言单词 </td>
    <td> 所属分类 </td>
    <td> 错误描述 </td>
    <td> 操作 </td>
  </tr>
<%
    DisplayPage dispage = null;
    if(request.getAttribute(Constants.KEY_REQUEST_RESULT)!=null){
        dispage = (DisplayPage)request.getAttribute(Constants.KEY_REQUEST_RESULT);
        List list = dispage.getList();
        String deleteUrl = "/admin/study/manageVocabulary.do?CMD=deleteError&page="
		+ dispage.getPageNumber()
		+ "&searchId="
		+ dispage.getSearchId();
        for(int i=0;i<list.size();i++){
            Vocabularyerrors obj = (Vocabularyerrors)list.get(i);
%>
		  <tr>
		    <td align="center"><%=(i+1)%></td>
		    <td align="center"><%=obj.getUser().getName()%></td>
		    <td align="left">&nbsp; 
		    	[<%=UTool.getLanguageName(obj.getLanguage(),sessionLocale) %>]
							<%=obj.getVocabulary().getContent() %>
			</td>
		    <td align="center"><%=obj.getVocabulary().getTranslation()%></td>
			<td align="center"><%=obj.getVocabulary().getCatvocabulary() %></td>
			<td align="center"><%=obj.getDescription()%></td>
		    <td align="center">
		          <a href="#" onclick="deleteOne('<%=deleteUrl + "&id=" + obj.getId()%>')">删除</a> 
		    </td>
		  </tr>
<%
        }
    }
%>  
</table>
<%
     //调用共通方法生成翻页工具条
	 out.print(JspHelper.getPageBar(dispage,request.getRequestURL()+"?CMD=searchError"));

%>
